/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
 * @author liuxin
 * @date 2023.10.10
 */
@Data
@NoArgsConstructor
@TableName("yx_cs_notice_circle")
@ApiModel("消息通知轮询实体")
public class YxCsNoticeCircleEntity implements Serializable{

    private static final long serialVersionUID = 116247611371L;

    @TableId(value = "circle_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "业务对象ID,对应发送消息场景的ID")
    private String bussId;

    @ApiModelProperty(value = "提醒内容")
    private String content;

    @ApiModelProperty(value = "提醒次数")
    private Integer totalNum;

    @ApiModelProperty(value = "循环频次 秒/次")
    private Integer cycleFreq;

    @ApiModelProperty(value = "循环时长 分钟")
    private Integer cycleTime;

    @ApiModelProperty(value = "处理状态：  0：未处理  1-已处理 2-推送完毕")
    private Integer status;

    @ApiModelProperty(value = "执行次数，执行次数等于提醒次数时不在发送")
    private Integer execNum;

    @ApiModelProperty(value = "提醒类型")
    private String noticeType;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成时间")
    private java.util.Date finishTime;
}
